Skip to content

fix: feedback for MultiChatSpam#110

Merged
toto04 merged 5 commits intomainfrom
fix-108
Apr 13, 2026
Merged

fix: feedback for MultiChatSpam#110
toto04 merged 5 commits intomainfrom
fix-108

Conversation

@toto04
Copy link
Copy Markdown
Contributor

@toto04 toto04 commented Apr 13, 2026

closes #108

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 13, 2026

Warning

Rate limit exceeded

@toto04 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 33 minutes and 9 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 33 minutes and 9 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ba555c2b-3b8c-4424-a4e4-c87c9aa1abeb

📥 Commits

Reviewing files that changed from the base of the PR and between 889cf9c and c694333.

📒 Files selected for processing (1)
  • src/middlewares/auto-moderation-stack/index.ts

Walkthrough

The multichatSpamHandler function in the auto-moderation stack has been updated to provide user feedback when messages are flagged as spam. The error handling path now returns immediately upon detecting an error, and successful moderation actions now schedule an ephemeral reply notifying the user that their message was deleted for potential spam.

Changes

Cohort / File(s) Summary
MultiChatSpam Handler Feedback
src/middlewares/auto-moderation-stack/index.ts
Enhanced multichatSpamHandler to immediately return on moderation errors and added ephemeral reply notification to users when messages are deleted for spam, explaining the action and advising against cross-topic/multi-group posting.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix: feedback for MultiChatSpam' directly and clearly describes the main change - adding feedback for the MultiChatSpam moderation feature.
Linked Issues check ✅ Passed The pull request implements feedback for MultiChatSpam [#108] by scheduling an ephemeral reply with a warning message explaining the deletion and advising against similar posting.
Out of Scope Changes check ✅ Passed All changes in the pull request are directly scoped to the MultiChatSpam feedback requirement specified in issue #108; no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/middlewares/auto-moderation-stack/index.ts`:
- Around line 303-314: Update the ephemeral reply in the auto-moderation
middleware to explicitly state that the user was muted for 5 minutes and use the
phrase "too similar too quickly"; specifically edit the call using fmt/ fmtUser/
ctx.reply/ ephemeral so the message lines include a sentence like "You have been
muted for 5 minutes" and replace "Please avoid sending similar messages..." with
wording that mentions "too similar too quickly" to satisfy Issue `#108`.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7a929ee5-d81d-4602-9d2f-b5e6b9219fd1

📥 Commits

Reviewing files that changed from the base of the PR and between f818bec and 889cf9c.

📒 Files selected for processing (1)
  • src/middlewares/auto-moderation-stack/index.ts

Comment thread src/middlewares/auto-moderation-stack/index.ts
@toto04 toto04 merged commit 9aa5f17 into main Apr 13, 2026
2 checks passed
@toto04 toto04 deleted the fix-108 branch April 13, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MultiChatSpam does not give clear feedback

2 participants